package com.zenithmind.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zenithmind.user.pojo.domain.Permission;
import com.zenithmind.user.pojo.query.PermissionQuery;
import com.zenithmind.user.pojo.vo.PermissionVO;
import com.zenithmind.common.result.PageResult;

import java.util.List;

/**
 * 权限表(Permission)服务接口
 *
 * @author makejava
 * @since 2025-04-11 20:36:07
 */
public interface PermissionService extends IService<Permission> {

    PageResult<PermissionVO> page(PermissionQuery permissionQuery);
    
    List<PermissionVO> getPermissionTree();
    
    List<PermissionVO> getByRoleId(String roleId);
    
    PermissionVO getPermissionById(String id);
}
